<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <input id="input" type="text" disabled />
    <script>
      // 同步
      const input = document.getElementById("input");
      setTimeout(() => {
        // input.setAttribute("disabled", "");
        // input.removeAttribute("disabled");

        // input.disabled = false;
        // console.log(input.disabled);
      }, 5000);
    </script>
  </body>
</html>
